package com.jumi.microservice.common.core.aspect;

import java.util.List;

/**
 * - - - - - - - - - - - - - - -
 *
 * @author liuz
 * @date 2020/7/22 18:15
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
public class DataTem {

    /**
     * 表名
     */
    private String tableName;
    /**
     * sql
     */
    private String sql;
    /**
     * 实体类
     */
    private Class<?> entityType;
    /**
     *  原数据
     */
    private List<?> oldData;
    /**
     * 更新数据
     */
    private List<?> newData;

    /**
     * 操作类型 INSERT UPDATE DELETE
     * @return
     */
    private String type;

    /**
     * 数据记录的主键id
     */
    private Long id;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public Class<?> getEntityType() {
        return entityType;
    }

    public void setEntityType(Class<?> entityType) {
        this.entityType = entityType;
    }

    public List<?> getOldData() {
        return oldData;
    }

    public void setOldData(List<?> oldData) {
        this.oldData = oldData;
    }

    public List<?> getNewData() {
        return newData;
    }

    public void setNewData(List<?> newData) {
        this.newData = newData;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
